﻿@using Resources
@model music.web.Models.Shared.SongModel
<li class="dropdown rate-buttons" id="menu-@Model.Id"><a class="dropdown-toggle" data-toggle="dropdown" href="#menu-@Model.Id">
	<span class="rate-name">@Model.RateName</span> <b class="caret"></b></a>
	<ul class="dropdown-menu">
		<li><a href="#" 
						   class="set-rate-positive @Model.PositiveRateStyle" 
						   data-set-rate-url="@Model.GetSetRateUrl(Url, 1)"
						   data-rate-name="@Common.SongRatePositive">Нравится</a></li>
		<li><a href="#" 
						   class="set-rate-negative @Model.NegativeRateStyle" 
						   data-set-rate-url="@Model.GetSetRateUrl(Url, -1)"
						   data-rate-name="@Common.SongRateNegative">Не нравится</a></li>
		<li><a href="#" 
						   class="set-rate-empty @Model.EmptyRateStyle" 
						   data-set-rate-url="@Model.GetSetRateUrl(Url, 0)"
						   data-rate-name="@Common.SongRateEmpty">Удалить оценку</a></li>
	</ul>
</li>
